package org.example.zxy.controller;

import org.example.zxy.service.HIService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class ConsumerController {
    @Qualifier("HIServiceFallback")
    @Autowired
    HIService hiService;
//    @Value("${service-url.nacos-user-service:http://localhost:8081}")
//    private String userServiceUrl;



    @GetMapping("/consumer/hello")
    public String hello(){

        return hiService.hello();
    }
}
